<h2>File Breakdown
  {{#if fullReport}}
    <a id="toggle" href="javascript:;" onclick="toggleAllDetails(this)" class="toggle-all-link">(expand all)</a>
  {{~/if~}}
</h2>

<table class="report-table">
  <thead>
    <tr>
      <th>File</th>
      <th class="error-col">Errors</th>
      <th class="warning-col">Warnings</th>
    </tr>
  </thead>
  <tbody>
    {{~#each files~}}
      {{~#row this~}}
        <td>
          {{~#if messages.length}}
            <a class="toggle-link" href="javascript:;" onclick="toggleDetails(this)">{{path}}</a>
          {{~else~}}
            {{path}}
          {{~/if~}}
        </td>
        <td>{{errors}}</td>
        <td>{{warnings}}</td>
      {{~/row~}}
      {{~#if messages.length~}}
        <tr class="details-row hidden">
          <td colspan="3">
            <table class="details-table">
              <tbody>
                {{~#each messages~}}
                  {{~#messageRow this~}}
                    <td class="location-col">
                      {{#if line}}
                        {{line}}:{{column}}
                      {{/if}}
                    </td>
                    <td class="severity-col">{{formatSeverity this}}</td>
                    <td class="message-col">{{message}}</td>
                    {{#if ruleUrl}}
                      <td class="rule-col"><a href="{{ruleUrl}}">{{ruleId}}</a></td>
                    {{^}}
                      <td class="rule-col">{{ruleId}}</td>
                    {{/if}}
                  {{~/messageRow}}
                {{~/each~}}
              </tbody>
            </table>
          </td>
        </tr>
      {{~/if~}}
    {{~/each~}}
  </tbody>
</table>
